package com.backedserver;

/**
 * @author johnny
 * @create 2021-05-28 12:18 下午
 **/
public class hello {



    public static void main(String[] args) {
        //将要添加的GAV坐标复制过来
        String pomInfo = "    <dependencies>\n" +
                "        <!--boot web actuator-->\n" +
                "        <dependency>\n" +
                "            <groupId>org.springframework.boot</groupId>\n" +
                "            <artifactId>spring-boot-starter-web</artifactId>\n" +
                "        </dependency>\n" +
                "        <dependency>\n" +
                "            <groupId>org.springframework.boot</groupId>\n" +
                "            <artifactId>spring-boot-starter-actuator</artifactId>\n" +
                "        </dependency>\n" +
                "        <dependency>\n" +
                "            <groupId>org.springframework</groupId>\n" +
                "            <artifactId>spring-test</artifactId>\n" +
                "        </dependency>\n" +
                "        <!--一般通用配置-->\n" +
                "        <dependency>\n" +
                "            <groupId>org.springframework.boot</groupId>\n" +
                "            <artifactId>spring-boot-devtools</artifactId>\n" +
                "            <scope>runtime</scope>\n" +
                "            <optional>true</optional>\n" +
                "        </dependency>\n" +
                "        <dependency>\n" +
                "            <groupId>org.projectlombok</groupId>\n" +
                "            <artifactId>lombok</artifactId>\n" +
                "        </dependency>\n" +
                "        <dependency>\n" +
                "            <groupId>org.springframework.boot</groupId>\n" +
                "            <artifactId>spring-boot-starter-test</artifactId>\n" +
                "            <scope>test</scope>\n" +
                "        </dependency>\n" +
                "        <dependency>\n" +
                "            <groupId>junit</groupId>\n" +
                "            <artifactId>junit</artifactId>\n" +
                "        </dependency>\n" +
                "        <dependency>\n" +
                "            <groupId>com.alibaba</groupId>\n" +
                "            <artifactId>druid</artifactId>\n" +
                "        </dependency>\n" +
                "        <dependency>\n" +
                "            <groupId>org.springframework.boot</groupId>\n" +
                "            <artifactId>spring-boot-starter-aop</artifactId>\n" +
                "        </dependency>\n" +
                "        <dependency>\n" +
                "            <groupId>mysql</groupId>\n" +
                "            <artifactId>mysql-connector-java</artifactId>\n" +
                "            <scope>runtime</scope>\n" +
                "        </dependency>\n" +
                "        <dependency>\n" +
                "            <groupId>org.mybatis.spring.boot</groupId>\n" +
                "            <artifactId>mybatis-spring-boot-starter</artifactId>\n" +
                "        </dependency>\n" +
                "        <dependency>\n" +
                "            <groupId>com.github.pagehelper</groupId>\n" +
                "            <artifactId>pagehelper-spring-boot-starter</artifactId>\n" +
                "        </dependency>\n" +
                "        <dependency>\n" +
                "            <groupId>org.springframework.boot</groupId>\n" +
                "            <artifactId>spring-boot-starter-data-redis</artifactId>\n" +
                "        </dependency>\n" +
                "        <dependency>\n" +
                "            <groupId>org.springframework.boot</groupId>\n" +
                "            <artifactId>spring-boot-starter-security</artifactId>\n" +
                "        </dependency>\n" +
                "        <dependency>\n" +
                "            <groupId>com.alibaba</groupId>\n" +
                "            <artifactId>fastjson</artifactId>\n" +
                "        </dependency>\n" +
                "\n" +
                "        <!--生成模板文件-->\n" +
                "        <dependency>\n" +
                "            <groupId>org.apache.velocity</groupId>\n" +
                "            <artifactId>velocity</artifactId>\n" +
                "            <version>1.7</version>\n" +
                "        </dependency>\n" +
                "\n" +
                "\n" +
                "        <!--================  swagger相关（生成接口文档） =================-->\n" +
                "        <dependency>\n" +
                "            <groupId>io.springfox</groupId>\n" +
                "            <artifactId>springfox-swagger2</artifactId>\n" +
                "            <version>2.9.2</version>\n" +
                "        </dependency>\n" +
                "\n" +
                "        <dependency>\n" +
                "            <groupId>io.springfox</groupId>\n" +
                "            <artifactId>springfox-swagger-ui</artifactId>\n" +
                "            <version>2.9.2</version>\n" +
                "        </dependency>\n" +
                "        <!--==============================================================-->\n" +
                "\n" +
                "        <!--============activiti====start===============-->\n" +
                "        <dependency>\n" +
                "            <groupId>org.activiti</groupId>\n" +
                "            <artifactId>activiti-spring-boot-starter-basic</artifactId>\n" +
                "        </dependency>\n" +
                "        <dependency>\n" +
                "            <groupId>org.activiti</groupId>\n" +
                "            <artifactId>activiti-spring</artifactId>\n" +
                "        </dependency>\n" +
                "        <dependency>\n" +
                "            <groupId>org.activiti</groupId>\n" +
                "            <artifactId>activiti-bpmn-converter</artifactId>\n" +
                "        </dependency>\n" +
                "        <dependency>\n" +
                "            <groupId>org.activiti</groupId>\n" +
                "            <artifactId>activiti-json-converter</artifactId>\n" +
                "        </dependency>\n" +
                "\n" +
                "        <dependency>\n" +
                "            <groupId>org.apache.xmlgraphics</groupId>\n" +
                "            <artifactId>batik-codec</artifactId>\n" +
                "            <version>1.7</version>\n" +
                "        </dependency>\n" +
                "        <dependency>\n" +
                "            <groupId>org.apache.xmlgraphics</groupId>\n" +
                "            <artifactId>batik-css</artifactId>\n" +
                "            <version>1.7</version>\n" +
                "        </dependency>\n" +
                "        <dependency>\n" +
                "            <groupId>org.apache.xmlgraphics</groupId>\n" +
                "            <artifactId>batik-svg-dom</artifactId>\n" +
                "            <version>1.7</version>\n" +
                "        </dependency>\n" +
                "        <dependency>\n" +
                "            <groupId>org.apache.xmlgraphics</groupId>\n" +
                "            <artifactId>batik-svggen</artifactId>\n" +
                "            <version>1.7</version>\n" +
                "        </dependency>\n" +
                "\n" +
                "        <!--============activiti====end=================-->\n" +
                "\n" +
                "        <!--web socket-->\n" +
                "        <dependency>\n" +
                "            <groupId>org.springframework.boot</groupId>\n" +
                "            <artifactId>spring-boot-starter-websocket</artifactId>\n" +
                "        </dependency>\n" +
                "\n" +
                "        <dependency>\n" +
                "            <groupId>commons-io</groupId>\n" +
                "            <artifactId>commons-io</artifactId>\n" +
                "        </dependency>\n" +
                "\n" +
                "        <!--加密-->\n" +
                "        <dependency>\n" +
                "            <groupId>org.bouncycastle</groupId>\n" +
                "            <artifactId>bcprov-jdk16</artifactId>\n" +
                "        </dependency>\n" +
                "\n" +
                "        <!-- quartz 定时器 -->\n" +
                "        <dependency>\n" +
                "            <groupId>org.quartz-scheduler</groupId>\n" +
                "            <artifactId>quartz</artifactId>\n" +
                "        </dependency>\n" +
                "\n" +
                "        <!--    minio文件服务    -->\n" +
                "        <dependency>\n" +
                "            <groupId>io.minio</groupId>\n" +
                "            <artifactId>minio</artifactId>\n" +
                "        </dependency>\n" +
                "\n" +
                "        <dependency>\n" +
                "            <groupId>io.jsonwebtoken</groupId>\n" +
                "            <artifactId>jjwt</artifactId>\n" +
                "        </dependency>\n" +
                "    </dependencies>";
        //PS：查看字符串的Unicode编码值方法：
        System.out.println(Integer.toHexString(" ".charAt(0)));//普通空格，\u0020
        System.out.println(Integer.toHexString(" ".charAt(0)));//不间断空格，\u00a0

        pomFormat(pomInfo);


    }

    /**
     * 格式化字符串，去掉所有的空格符、换行符
     */
    public static String pomFormat(String pomInfo) {
        pomInfo = pomInfo.replace("\n", "");//去掉换行符
        pomInfo = pomInfo.replace(" ", "");//去掉普通空格，\u0020
        pomInfo = pomInfo.replace("\u00A0", "");//去掉不间断空格，\u00a0
//      pomInfo=pomInfo.replace(" ","");//去掉不间断空格，\u00a0
        System.out.println("[" + pomInfo + "]");
        return pomInfo;
    }
}